import { createApp } from 'vue'
import App from './App.vue'
import Router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import request from './utils/reuqest'
import storage from "./utils/storage"
import apis from "./api"
import * as ELIcons from '@element-plus/icons-vue'
import store from "./store"


console.log("环境变量=>",import.meta.env);

const app = createApp(App);



app.config.globalProperties.$request = request
app.config.globalProperties.$apis = apis
app.config.globalProperties.$storage = storage

app.use(Router).use(store).use(ElementPlus).mount('#app')

for (let iconName in ELIcons) {
    app.component(iconName, ELIcons[iconName])
}